package com.uco.oop;

// javabean又称为实体类，专门用于数据的存储
// 对于数据的处理，在别的专门处理数据的类中实现
// 分层思想，解耦

public class JavaBean {
    private String name;
    private int age;
    private int height;

    public void setAge(int age) {
        this.age = age;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public int getHeight() {
        return height;
    }

    public String getName() {
        return name;
    }

    // 提供一个有参构造器
    public JavaBean(int age, int height, String name) {
        this.age = age;
        this.height = height;
        this.name = name;
    }

    // 提供一个无参构造器(必选)
    public JavaBean() {
    }
}
